/**
 * Copyright 2016-2018 mobaas.com
 */
package com.mobaas.devops.dao;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.mobaas.devops.model.Container;
import com.mobaas.devops.model.ContainerStat;

/**
 * 
 * @author billy zhang
 * 
 */
public interface ContainerDao {

	void insertContainerStat(ContainerStat stat);

	List<ContainerStat> selectContainerStatsTotalByApp( String appId, Date startDate, int interval);

	List<ContainerStat> selectContainerStatsTotalByHostIp( String hostIp,  Date startDate);

	int updateContainer(Container cont);

	void insertContainer(Container cont);

	Container selectContainerById(String containerId);

	Container selectContainerByHostAndPort(String hostIp, int port);

	List<Map> selectLastContainerStatMap();
}
